import request from '@/utils/request';

// 查询意见反馈列表
export function listFeedback(query) {
	return request({
		url: '/mall/feedback/list',
		method: 'post',
		data: query,
	});
}

// 查询意见反馈详细
export function getFeedback(id) {
	return request({
		url: '/mall/feedback/getInfo',
		method: 'post',
		data: id,
	});
}

// 新增意见反馈
export function addFeedback(data) {
	return request({
		url: '/mall/feedback/add',
		method: 'post',
		data: data,
	});
}

// 编辑意见反馈
export function updateFeedback(data) {
	return request({
		url: '/mall/feedback/edit',
		method: 'post',
		data: data,
	});
}

// 删除意见反馈
export function delFeedback(data) {
	return request({
		url: '/mall/feedback/remove',
		method: 'post',
		data,
	});
}

// 导出意见反馈
export function exportFeedback(data) {
	return request({
		url: '/mall/feedback/export',
		method: 'post',
		data: data,
	});
}

//统计
export function queryFeedBackStatistics() {
	return request({
		url: '/mall/feedback/queryFeedBackStatistics',
		method: 'get',
	});
}
